#程序版本
VERSION  = 2023.07.25
#程序图标
#RC_ICONS = main.ico
#产品名称
QMAKE_TARGET_PRODUCT = Log4cPlus
#版权所有
QMAKE_TARGET_COPYRIGHT = Smile
#文件说明
QMAKE_TARGET_DESCRIPTION = QT使用例程
#编译平台
# 只支持VS2017 32位编译

# 添加自定义变量
DEFINES += NAME=Smile
DEFINES += WPI=3.24
DEFINES += TARGETNAME=$$QMAKE_TARGET_COPYRIGHT
DEFINES += WVERSION=$$VERSION

QT       += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

# 项目配置
TARGET      = $$QMAKE_TARGET_PRODUCT          # 生成目标的名字
TEMPLATE    = app           # 生成应用的类型  app、lib
DESTDIR     = $$PWD/../../bin  # 生成目标的路径
CONFIG      += warn_off     # 告诉qmake应用程序的配置信息
CONFIG      += c++14

DEFINES += QT_DEPRECATED_WARNINGS

SOURCES += \
    WLog4cplus.cpp \
    main.cpp \
    widget.cpp

HEADERS += \
    WLog4cplus.h \
    widget.h

FORMS += \
    widget.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

LIBS += -LD:/lib/log4cplus/vs2017-32-debug/ -llog4cplusUD

INCLUDEPATH += D:/lib/log4cplus/include
DEPENDPATH += D:/lib/log4cplus/vs2017-32-debug

DISTFILES += \
    Readme.md
